#ifndef QCPICKWORKSPACE_H
#define QCPICKWORKSPACE_H

#include <QListWidget>

class QcPickWorkspace : public QListWidget
{
    Q_OBJECT

    using super_ = QListWidget;

public:

    using super_::super_;

    // 重载该函数以显示提示信息
    void paintEvent(QPaintEvent *e) override;

    // 处置文件目录拖拽事件
    void dragEnterEvent(QDragEnterEvent *e) override;
    void dragMoveEvent(QDragMoveEvent *e) override;
    void dropEvent(QDropEvent *e) override;

    void mouseDoubleClickEvent(QMouseEvent *e) override;

    void addPath(const QString& path);

 public slots:
    void on_new_path();
    void on_remove_path();
    void on_open_path();
};

#endif // QCPICKWORKSPACE_H
